//
//  City.m
//  Province-City-zone
//
//  Created by dllo on 16/7/11.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "City.h"

@implementation City
- (instancetype)initWithName:(NSString *)name {
    self = [super initWithName:name];
    if (self) {
        _arr = [NSMutableArray array];
    }
    return self;
}
// 重写打印
- (NSString *)description {
    return [NSString stringWithFormat:@"%@ %@ %@",_arr,self.name, self.number];
}
- (instancetype)initWithName:(NSString *)name number:(NSString *)number {
    self = [super initWithName:name number:number];
    if (self) {
        _arr = [NSMutableArray array];
    }
    return self;
}

- (void)dealloc
{
    [_arr release];
    [super dealloc];
}
@end
